From: Florian Müllner Date: Wed, 11 Aug 2021 22:07:17 +0000 (+0200) Subject: appDisplay: Remove unnecessary unmapped handler X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~113 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5e90e8d3851043867cb55589c3305068730aea83;p=gnome-shell.git appDisplay: Remove unnecessary unmapped handler Since commit 35494f5d08, all menus are closed when their source gets unmapped. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a3e60b834..950979647 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -3430,16 +3430,6 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { this.actor.add_style_class_name('app-well-menu'); - // Chain our visibility and lifecycle to that of the source - this._sourceMappedId = source.connect('notify::mapped', () => { - if (!source.mapped) - this.close(); - }); - source.connect('destroy', () => { - source.disconnect(this._sourceMappedId); - this.destroy(); - }); - Main.uiGroup.add_actor(this.actor); }